package mn.idax.exchange.otc.enums.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Create by jack_huang on 2018/8/13
 */
@Getter
@AllArgsConstructor
public enum OrderResponseEnum {

    ORDERNUM_ISEMPTY(410000,"orderNum is empty"),

    ORDERNUM_ISNOTEXIST(410001,"orderNum is not exist"),

    UPDATE_WITHNOAUTH(410002,"you are not authorization"),

    ORDERSTATE_ISEMPTY(410003,"orderState is empty"),

    ORDERSTATE_ERROR(410004,"orderState is error"),

    UPDATE_ORDERSTATEFAIL(410005,"update orderState fail"),

    SEND_UPDATEORDERSTATE(410006,"send update orderState message fail"),

    ORDERTYPE_ISEMPTY(410007,"orderType is empty"),

    ORDERTYPE_ERROR(410008,"orderType is error"),

    ORDER_ISNOTEXIST(410009,"order is not exist"),

    ORDER_WITHNOAUTH(410010,"you are no auth to operate this order"),

    ORDER_ADIDISEMPTY(410011,"adId is empty"),

    ORDER_TOTALPRICEISERROR(410012,"totalPrice can not be equal 0"),

    ORDER_QTYISERROR(410013,"qty can not be equal 0"),

    ORDER_SELLTYPEISERROR(410014,"sellType is error"),

    ORDER_TOTALPRICE_MINERROR(410015,"create order totalPrice min error"),

    ORDER_TOTALPRICE_MAXERROR(410016,"create order totalPrice max error"),

    ORDER_CREATE_FAIL(410017,"create order fail"),

    ORDERE_FROZENACCOUNTFAIL(410018,"Order failed, please try again later"),

    ORDERE_UNFROZENACCOUNTFAIL(410019,"release account frozenamount fail"),

    BUY_MUSTCERTIFICATE(410020,"buy ad must certificate"),

    BUY_INBLACKLIST(410021,"The other party / you are in the blacklist, you can not place an order"),

    BUY_ACCOUNTISFROZEN(410022,"your account is frozen"),

    ORDER_BUYBYSELF(410023,"you can not buy self ad"),

    ACCOUNT_ISNOTEXOST(410024,"account is not exist"),

    ORDER_CONFIRMPAIDFAIL(410025,"order confirm paid fail"),

    ORDER_PAYAUTHBUYER(410026,"you are not buyer can not pay"),

    ORDER_PAYAUTHSELLER(410027,"you are not seller can not pay"),

    CANCEL_WITHNOAUTH(410028,"you are no auth to cancel order"),

    CANCEL_ORDERFAIL(410029,"cancel order fail"),

    ORDERLOG_INSERTFAIL(410030,"orderLog insert fail"),

    ACCOUNTHISTORY_INSERTFAIL(410031,"accountHistory insert fail"),

    ORDER_CANCELBY_ORDERSTATE(410032,"order cancel fail because of ordertate"),

    AD_STATE_NOTSUPPORT(410033,"ad state not support trade"),

    ACCOUNT_TRANSFERFAIL(410034,"transfer fail"),

    ACCOUNTTRANSACTION_FAIL(410035,"insert accountTransaction fail"),

    UNFORZEN_ACCOUNTFAIL(410036,"unforzen account fail"),

    ORDERSTATE_NOTSUPPORT(410037,"orderState not support"),

    SERVEICECHARGE_FAIL(410038,"get service charge deduction fail"),

    ORDER_STATE_IS_CURRENT(410039,"the current orderState is same as beChanged orderState"),

    UPDATE_CANCELTIMEFAIL(410040,"update cancelTime fail"),

    PAY_METHOD_ISEMPTY(410041,"pay method can not empty"),

    PAYEE_NO_THISMETHOD(410042,"payee have not this payMethod"),

    SIGNCONFIRMPAIDFAIL(410043,"sign confirm paid fail"),

    QTYORTOTALMONRY_ISEMPTY(410044,"qty or totalMonry can not  either empty"),

    COIN_FEE_RATE_ISEMPTY(410045,"coin fee rate record is empty"),

    TIMEOUTORDER_UNFROZEN_FAIL(410046,"timeout order unfrozen fail"),

    BENEFICIARY_CHOOSED_NONE(410047,"please add choosed beneficiary information"),

    BENEFICIARY_SELF_NONE(410048,"please add at least one method of beneficiary information"),

    YOU_HADSIGN(410049,"you were already sign this order"),

    HAVA_UNPAID_ORDER(410050,"you have order in unpaid with other,can not place order"),

    CREARE_ORDER_NO_AUTH(410051,"You are not entitled to place an order"),

    SELLER_ACCOUNT_NOT_ENOUGH(410052,"Seller account is not enough"),

    SYSTEM_MAINTENANCE(410053,"System maintenance"),

    CREATEORDER_QTY(410054,"Incorrect quantity"),

    CREATEORDER_TOTALPRICE(410055,"The total amount is incorrect"),

    RELEASE_ORDERFAIL(410056,"The currency failed, please try again later"),

    OTCBENEFICIARY_ADER_EMPTY(410057,"The seller has not set up a payment account, and cannot place an order."),

    OTCBENEFICIARY_ORDERINGPERSON_EMPTY(410058,"You need to open the payment method before you can place an order for sale."),

    OTCCANCELORDER_MAX(410059,"The order was successfully cancelled three times on the same day, and the order cannot be placed on the same day."),

    ORDERE_UNFROZEN_INSERT_FAIL(410060,"release account frozenamount fail"),

    ORDERE_CANCEL_INSERT_FAIL(410061,"release account frozenamount fail"),

    ORDERE_RELEASE_INSERT_FAIL(410062,"release account frozenamount fail"),

    OTC_NEED_CERTIFICATE(410063,"otc need certificate"),

    BUY_MUST_MOBILE(410064,"buy ad must moible"),

    BUY_MUST_ADVANCECERTIFICATE(410065,"buy ad must advancecertificate"),

    ;

    private Integer respCode;

    private String respMsg;

}
